#ifndef CALCULATOR_H
#define CALCULATOR_H

#include "Infix2Suffix.h"
#include "SuffixCalculator.h"
#include <string>

class Calculator
{
public:
    static inline double Calculate(const std::string& s)
    {
        Infix2Suffix t;
        t.SetString(s);
        auto& i = t.GetResult();
        return SuffixCalculator::Calculate(i);
    }
};


#endif //CALCULATOR_H
